home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
Pakiet bezpieczenstwa
/
mini Pentoo LiveCD 2006.1
/
mpentoo-2006.1.iso
/
livecd.squashfs
/
usr
/
bin
/
Etsearch
< prev
next >
Wrap
Text File
|
2005-12-09
|
713b
|
31 lines
#!/bin/sh
#
# Eterm Search Utility
#
# $Id: Etsearch,v 1.1 2000/02/11 00:25:07 mej Exp $
if [ $# -gt 1 -o "X$1" = "X-h" -o "X$1" = "X--help" ]; then
echo "Syntax: Etsearch [string]"
echo " (To clear the highlighting from a previous search,"
echo " do not specify a string.)"
echo
exit 0
fi
# Code to figure out if we need 'echo -n' or 'echo "\c"', stolen from configure
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
ac_n= ac_c='
'
else
ac_n=-n ac_c=
fi
else
ac_n= ac_c='\c'
fi
STR="$1"
echo $ac_n "]6;72;${STR}$ac_c"